#include "camera.h"

void Camera::setModel(const std::string& model) {
    this->model = model;
}

void Camera::setCamera(const std::string& camera) {
    this->camera = camera;
}

void Camera::setRGBResolution(const std::string& rgb_resolution) {
    this->rgb_resolution = rgb_resolution;
}

void Camera::setRGBFPS(int rgb_fps) {
    this->rgb_fps = rgb_fps;
}

void Camera::setFOV(const std::string& fov) {
    this->fov = fov;
}

void Camera::setDepthFPS(int depth_fps) {
    this->depth_fps = depth_fps;
}

void Camera::print() const {
    std::cout << "摄像头型号: " << model << std::endl;
    std::cout << "相机型号: " << camera << std::endl;
    std::cout << "RGB分辨率: " << rgb_resolution << std::endl;
    std::cout << "RGB帧率: " << rgb_fps << std::endl;
    std::cout << "视场角: " << fov << std::endl;
    std::cout << "深度帧率: " << depth_fps << std::endl;
}

void Camera::save(std::ofstream& out) const {
    out << "摄像头型号: " << model << std::endl;
    out << "相机型号: " << camera << std::endl;
    out << "RGB分辨率: " << rgb_resolution << std::endl;
    out << "RGB帧率: " << rgb_fps << std::endl;
    out << "视场角: " << fov << std::endl;
    out << "深度帧率: " << depth_fps << std::endl;
}